package com.zhanghp.demo01;

import lombok.extern.slf4j.Slf4j;

/**
 * @author zhanghp
 * @date 2022-08-30 15:12
 */
@Slf4j
public class App {

    public static void main(String[] args) {
        Travel travel = new Travel(new Car());
        travel.transprotation();

        log.info(" <--- change Travel Transportation --->");
        travel.changeStrategy(new Bike());
        travel.transprotation();

    }
}
